<template>
	<view class="">
		<view class="nav_top-bg">
			<u-navbar title="信息发布">
				<view class="u-nav-slot" slot="left">
					<u-icon name="arrow-left" @click="go_black" size="19"></u-icon>
					<u-line direction="column" :hairline="false" length="16" margin="0 10px"></u-line>
					<u-icon name="home" @click="goHome" size="20"></u-icon>
				</view>
			</u-navbar>
		</view>
		<!-- tabs筛选 -->
		<view class="tabslist">
			<view class="anliList">
				<u-tabs :list="anli_list" :current="current" lineWidth="48rpx" lineColor="#FF6400" :activeStyle="{
			    color: '#FF6400',
			    fontWeight: 'bold',
			    transform: 'scale(1.05)'
			}" @click="anli_click"></u-tabs>
			</view>
		</view>
		<!-- 建房信息 -->
		<view class="fengge-list" v-if="anli_list[current].id == 1">
			<view class="gugong-info"  v-for="(info_list,index) in infoLists" :key="index">
				<view class="w-650">
					<view class="status" @click="jianfang_info(info_list)">
						<view class="shenhe" v-if="info_list.status == 0"> <text style="color: #999;">状态：</text> 正在审核中</view>
						<view class="shenhe" v-if="info_list.status == 1"> <text style="color: #999;">状态：</text> 审核成功</view>
						<view class="shenhe" v-if="info_list.status == 2"> <text style="color: #999;">状态：</text> 审核失败</view>
					</view>
					<view class="" @click="jianfang_info(info_list)">
						<view class="guGongMiaoshu" v-if="info_list.infotype_id == 9" >{{info_list.xiangmu}}</view>
						<view class="guGongMiaoshu" v-else>{{info_list.content}}</view>
						<view class="type-list d-flex flex-wrap align-items">
							<view class="type-list-m" v-if="info_list.jinshen && info_list.miankuan">{{info_list.jinshen * info_list.miankuan}}m²</view>
							<view class="type-list-m" v-if="info_list.jinshen">长{{info_list.jinshen}}m</view>
							<view class="type-list-m" v-if="info_list.miankuan">宽{{info_list.miankuan}}m</view>
							<view class="type-list-m" v-if="info_list.ceng">{{info_list.ceng}}层</view>
							<view class="type-list-m" v-if="info_list.tingyuan">庭院{{info_list.tingyuan}}m²</view>
							<view class="type-list-m" v-if="info_list.wudingname">{{info_list.wudingname}}</view>
							<view class="type-list-m" v-if="info_list.yangtai">{{info_list.yangtai}}m²</view>
							<view class="type-list-m" v-if="info_list.dixiashi == 1">有地下室</view>
						</view>
					</view>
					<view class="d-flex align-items">
						<view class="d-flex align-items pinglun-magin" @click="jianfang_info(info_list)">
							<image class="pinlun" src="../static/pinlun_icon@1x.png" mode="widthFix"></image>
							<view class="plnum">{{info_list.pinglun}}</view>
						</view>
						<view class="d-flex align-items" @click="dianzan_click(info_list)">
							<image class="pinlun" v-if="info_list.is_zan == 1" src="../static/dainzan_yd_icon@1x.png" mode="widthFix"></image>
							<image class="pinlun" v-else src="../static/dainzan_icon@1x.png" mode="widthFix"></image>
							<view :class="info_list.is_zan == 1 ? 'plnum_xz' : 'plnum'">{{info_list.zan}}</view>
						</view>
					</view>
					<view class="d-flex align-items justify-content-space-between">
						<view class="hour_time type-list">
							<text>{{info_list.shijian}}</text>
							<text v-if="info_list.cityname">·</text>
							<text>{{info_list.cityname ? info_list.cityname : ''}}</text>
						</view>
						<view class="d-flex align-items">
							<view class="del_go" @click="del_my_info(info_list)">删除</view>
							<view class="set_info" @click="set_my_info(info_list)">修改</view>
						</view>
					</view>

				</view>
			</view>
		</view>
		<!-- 装修信息 -->
		<view class="fengge-list" v-if="anli_list[current].id == 2">
			<view class="gugong-info" v-for="(info_list,index) in infoLists" :key="index">
				<view class="w-650">
					<view class="status" @click="jianfang_info(info_list)">
						<view class="shenhe" v-if="info_list.status == 0"> <text style="color: #999;">状态：</text> 正在审核中</view>
						<view class="shenhe" v-if="info_list.status == 1"> <text style="color: #999;">状态：</text> 审核成功</view>
						<view class="shenhe" v-if="info_list.status == 2"> <text style="color: #999;">状态：</text> 审核失败</view>
					</view>
					<view class="" @click="jianfang_info(info_list)">
						<view class="guGongMiaoshu" v-if="info_list.infotype_id == 9">{{info_list.xiangmu}}</view>
						<view class="guGongMiaoshu" v-else>{{info_list.content}}</view>
						<view class="type-list d-flex align-items">
							<view class="type-list-m" v-if="info_list.mianji">{{info_list.mianji}}m²</view>
							<view class="type-list-m" v-if="info_list.price">{{info_list.price}}万</view>
						</view>
					</view>
					
					<view class="d-flex align-items">
						<view class="d-flex align-items pinglun-magin" @click="jianfang_info(info_list)">
							<image class="pinlun" src="../static/pinlun_icon@1x.png" mode="widthFix"></image>
							<view class="plnum">{{info_list.pinglun}}</view>
						</view>
						<view class="d-flex align-items" @click="dianzan_click(info_list)">
							<image class="pinlun" v-if="info_list.is_zan == 1" src="../static/dainzan_yd_icon@1x.png" mode="widthFix"></image>
							<image class="pinlun" v-else src="../static/dainzan_icon@1x.png" mode="widthFix"></image>
							<view :class="info_list.is_zan == 1 ? 'plnum_xz' : 'plnum'">{{info_list.zan}}</view>
						</view>
					</view>

					<view class="d-flex align-items justify-content-space-between">
						<view class="hour_time type-list">
							<text>{{info_list.shijian}}</text>
							<text v-if="info_list.cityname">·</text>
							<text>{{info_list.cityname ? info_list.cityname : ''}}</text>
						</view>
						<view class="d-flex align-items">
							<view class="del_go" @click="del_my_info(info_list)">删除</view>
							<view class="set_info" @click="set_my_info(info_list)">修改</view>
						</view>
					</view>

				</view>
			</view>
		</view>
		<!-- 雇工信息 -->
		<view class="fengge-list" v-if="anli_list[current].id == 3">
			<view class="gugong-info" v-for="(info_list,index) in infoLists" :key="index">
				<view class="w-650">
					<view class="" @click="go_zhaogong_detail(info_list)">
						<view class="status">
							<view class="shenhe" v-if="info_list.status == 0"> <text style="color: #999;">状态：</text> 正在审核中</view>
							<view class="shenhe" v-if="info_list.status == 1"> <text style="color: #999;">状态：</text> 审核成功</view>
							<view class="shenhe" v-if="info_list.status == 2"> <text style="color: #999;">状态：</text> 审核失败</view>
						</view>
						<view class="guGongMiaoshu">{{info_list.content}}</view>
						<view class="type-list d-flex align-items">
							<view class="type-list-m" v-if="info_list.gongzhongname">{{info_list.gongzhongname}}</view>
							<view class="type-list-m" v-if="info_list.gongqi">工期{{info_list.gongqi}}天</view> 
							<view class="type-list-m" v-if="info_list.renshu">{{info_list.renshu}}人</view>
						</view>
					</view>
					<view class="d-flex align-items">
						<view class="d-flex align-items pinglun-magin" @click="go_zhaogong_detail(info_list)">
							<image class="pinlun" src="../static/pinlun_icon@1x.png" mode="widthFix"></image>
							<view class="plnum">{{info_list.pinglun}}</view>
						</view>
						<view class="d-flex align-items" @click="dianzan_click(info_list)">
							<image class="pinlun" v-if="info_list.is_zan == 1" src="../static/dainzan_yd_icon@1x.png" mode="widthFix"></image>
							<image class="pinlun" v-else src="../static/dainzan_icon@1x.png" mode="widthFix"></image>
							<view :class="info_list.is_zan == 1 ? 'plnum_xz' : 'plnum'">{{info_list.zan}}</view>
						</view>
					</view>
					<view class="d-flex align-items justify-content-space-between">
						<view class="hour_time" @click="go_zhaogong_detail(info_list)">
							<text>{{info_list.shijian}}</text>
							<text v-if="info_list.cityname">·</text>
							<text>{{info_list.cityname ? info_list.cityname : ''}}</text>
						</view>

						<view class="d-flex align-items">
							<view class="del_go" @click="del_my_info(info_list)">删除</view>
							<view class="set_info" @click="set_my_info(info_list)">修改</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<!-- 证件挂靠信息 -->
		<view class="fengge-list" v-if="anli_list[current].id == 4">
			<view class="gugong-info" v-for="(info_list,index) in infoLists" :key="index">
				<view class="w-650 status">
					<view class="shenhe" v-if="info_list.status == 0"> <text style="color: #999;">状态：</text> 正在审核中</view>
					<view class="shenhe" v-if="info_list.status == 1"> <text style="color: #999;">状态：</text> 审核成功</view>
					<view class="shenhe" v-if="info_list.status == 2"> <text style="color: #999;">状态：</text> 审核失败</view>
				</view>
				<view class="w-650 d-flex">
					<image class="card-img" :src="info_list.zhengjian_images_first" mode="widthFix"></image>
					<view class="">
						<view class="card-ms">{{info_list.content}}</view>
						<view class="d-flex align-items justify-content-space-between">
							<view class=""></view>
							<view class="d-flex align-items">
								<view class="del_go" @click="del_my_info(info_list)">删除</view>
								<view class="set_info" @click="set_my_info(info_list)">修改</view>
							</view>
						</view>
					</view>

				</view>
			</view>
		</view>
		<!-- 施工案例 -->
		<view class="fengge-list" v-if="anli_list[current].id == 5">
			<view class="w-690">
				<view class="choose-fengge margin-top-30" v-for="(info_list,index) in infoLists" :key="index">
					<view class="image_postion">
						<view class="del-set">
							<view class="set_info-set" @click="set_my_info(info_list)">修改</view>
							<view class="del_go-del" @click="del_my_info(info_list)">删除</view>
						</view>
						<view class="shenhe_postion">
							<view class="shenhe_bg" v-if="info_list.status == 0"> <text style="color: #fff;">状态：</text> 正在审核中</view>
							<view class="shenhe_bg" v-if="info_list.status == 1"> <text style="color: #fff;">状态：</text> 审核成功</view>
							<view class="shenhe_bg" v-if="info_list.status == 2"> <text style="color: #fff;">状态：</text> 审核失败</view>
						</view>
						<image @click="go_detail(info_list)" :src="info_list.zhutu_firsturl" mode="widthFix" class="fenggeImg"></image>
					</view>
					<view class="" @click="go_detail(info_list)">
						<view class="fengge-t">{{info_list.content2.title}}</view>
						<view class="type-list-1 d-flex align-items">
							<view class="type-list-m1" v-if="info_list.mianji">{{info_list.mianji}}m²</view>
							<view class="type-list-m1" v-if="info_list.jinshen">长{{info_list.jinshen}}m</view>
							<view class="type-list-m1" v-if="info_list.miankuan">宽{{info_list.miankuan}}m</view>
							<view class="type-list-m1" v-if="info_list.price">{{info_list.price}}万</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<!-- 设计案例 -->
		<view class="fengge-list" v-if="anli_list[current].id == 6">
			<view class="w-690">
				<view class="choose-fengge margin-top-30" v-for="(info_list,index) in infoLists" :key="index">
					<view class="image_postion">
						<view class="del-set">
							<view class="set_info-set" @click="set_my_info(info_list)">修改</view>
							<view class="del_go-del" @click="del_my_info(info_list)">删除</view>
						</view>
						<view class="shenhe_postion">
							<view class="shenhe_bg" v-if="info_list.status == 0"> <text style="color: #fff;">状态：</text> 正在审核中</view>
							<view class="shenhe_bg" v-if="info_list.status == 1"> <text style="color: #fff;">状态：</text> 审核成功</view>
							<view class="shenhe_bg" v-if="info_list.status == 2"> <text style="color: #fff;">状态：</text> 审核失败</view>
						</view>
						<image :src="info_list.zhutu_images_firsturl" @click="go_detail(info_list)" mode="widthFix" class="fenggeImg"></image>
					</view>
					<view class="" @click="go_detail(info_list)">
						<view class="fengge-t">{{info_list.content2.title}}</view>
						<view class="type-list-1 d-flex align-items">
							<view class="type-list-m1" v-if="info_list.mianji">{{info_list.mianji}}m²</view>
							<view class="type-list-m1" v-if="info_list.huxingname">{{info_list.huxingname}}</view>
							<view class="type-list-m1" v-if="info_list.fenggename">{{info_list.fenggename}}</view>
							<view class="type-list-m1" v-if="info_list.huxingname">{{info_list.huxingname}}</view>
							<view class="type-list-m1" v-if="info_list.price">{{info_list.price}}万</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<!-- 建房设计 -->
		<view class="fengge-list" v-if="anli_list[current].id == 7">
			<view class="w-690">
				<view class="choose-fengge margin-top-30" v-for="(info_list,index) in infoLists" :key="index">
					<view class="image_postion">
						<view class="del-set">
							<view class="set_info-set" @click="set_my_info(info_list)">修改</view>
							<view class="del_go-del" @click="del_my_info(info_list)">删除</view>
						</view>
						<view class="shenhe_postion">
							<view class="shenhe_bg" v-if="info_list.status == 0"> <text style="color: #fff;">状态：</text> 正在审核中</view>
							<view class="shenhe_bg" v-if="info_list.status == 1"> <text style="color: #fff;">状态：</text> 审核成功</view>
							<view class="shenhe_bg" v-if="info_list.status == 2"> <text style="color: #fff;">状态：</text> 审核失败</view>
						</view>
						<image @click="go_detail(info_list)" :src="info_list.anli_images_first" mode="widthFix" class="fenggeImg"></image>
					</view>
					<view class="" @click="go_detail(info_list)">
						<view class="fengge-t">{{info_list.content2.title}}</view>
						<view class="type-list-1 d-flex align-items">
							<view class="type-list-m1" v-if="info_list.mianji">{{info_list.mianji}}m²</view>
							<view class="type-list-m1" v-if="info_list.jinshen">长{{info_list.jinshen}}m</view>
							<view class="type-list-m1" v-if="info_list.miankuan">宽{{info_list.miankuan}}m</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<!-- 装修案例 -->
		<view class="fengge-list" v-if="anli_list[current].id == 8">
			<view class="w-690">
				<view class="choose-fengge margin-top-30" v-for="(info_list,index) in infoLists" :key="index">
					<view class="image_postion">
						<view class="del-set">
							<view class="set_info-set" @click="set_my_info(info_list)">修改</view>
							<view class="del_go-del" @click="del_my_info(info_list)">删除</view>
						</view>
						<view class="shenhe_postion">
							<view class="shenhe_bg" v-if="info_list.status == 0"> <text style="color: #fff;">状态：</text> 正在审核中</view>
							<view class="shenhe_bg" v-if="info_list.status == 1"> <text style="color: #fff;">状态：</text> 审核成功</view>
							<view class="shenhe_bg" v-if="info_list.status == 2"> <text style="color: #fff;">状态：</text> 审核失败</view>
						</view>
						<image @click="go_detail(info_list)" :src="info_list.zhutu_images_first" mode="widthFix" class="fenggeImg"></image>
					</view>
					<view class="" @click="go_detail(info_list)">
						<view class="fengge-t">{{info_list.content2.title}}</view>
						<view class="type-list-1 d-flex align-items">
							<view class="type-list-m1" v-if="info_list.mianji">{{info_list.mianji}}m²</view>
							<view class="type-list-m1" v-if="info_list.huxingname">{{info_list.huxingname}}</view>
							<view class="type-list-m1" v-if="info_list.yusuan">{{info_list.yusuan}}万</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<!-- 图纸信息 -->
		<view class="fengge-list" v-if="anli_list[current].id == 9">
			<view class="w-690">
				<view class="choose-fengge margin-top-30" v-for="(info_list,index) in infoLists" :key="index">
					<view class="image_postion">
						<view class="del-set">
							<view class="set_info-set" @click="set_my_info(info_list)">修改</view>
							<view class="del_go-del" @click="del_my_info(info_list)">删除</view>
						</view>
						<view class="shenhe_postion">
							<view class="shenhe_bg" v-if="info_list.status == 0"> <text style="color: #fff;">状态：</text> 正在审核中</view>
							<view class="shenhe_bg" v-if="info_list.status == 1"> <text style="color: #fff;">状态：</text> 审核成功</view>
							<view class="shenhe_bg" v-if="info_list.status == 2"> <text style="color: #fff;">状态：</text> 审核失败</view>
						</view>
						<image @click="go_tuzhi_detail(info_list)" :src="info_list.pingmian_images_first" mode="widthFix" class="fenggeImg"></image>
					</view>
					<view class="" @click="go_tuzhi_detail(info_list)">
						<view class="fengge-t">{{info_list.content2.title}}</view>
					<view class="type-list-1 flex-wrap d-flex align-items">
						<view class="type-list-m1" v-if="info_list.mianji">{{info_list.mianji}}m²</view>
						<view class="type-list-m1" v-if="info_list.jiegouname">{{info_list.jiegouname}}</view>
						<view class="type-list-m1" v-if="info_list.miankuan">宽{{info_list.miankuan}}m</view>
						<view class="type-list-m1" v-if="info_list.jinshen">长{{info_list.jinshen}}m</view>
						<view class="type-list-m1" v-if="info_list.wudingname">{{info_list.wudingname}}</view>
						<view class="type-list-m1" v-if="info_list.fenggename">{{info_list.fenggename}}</view>
						<view class="type-list-m1" v-if="info_list.ceng">{{info_list.ceng}}层</view>
						<view class="type-list-m1" v-if="info_list.zaojia">{{info_list.zaojia}}万</view>
					</view>
					</view>
					
				</view>
			</view>
		</view>
		<!-- 材料信息 -->
		<view class="fengge-list" v-if="anli_list[current].id == 10">
			<view class="w-690">
				<view class="shopping d-flex align-items justify-content-space-between">
					<view class="shopping_list" v-for="(info_list,index) in infoLists" :key="index">
						<view class="shopping_postion">
							<view class="del-set">
								<view class="set_info-set" @click="set_my_info(info_list)">修改</view>
								<view class="del_go-del" @click="del_my_info(info_list)">删除</view>
							</view>
							<view class="shenhe_cailiao">
								<view class="shenhe_bg_cailiao" v-if="info_list.status == 0"> <text style="color: #fff;">状态：</text> 正在审核中</view>
								<view class="shenhe_bg_cailiao" v-if="info_list.status == 1"> <text style="color: #fff;">状态：</text> 审核成功</view>
								<view class="shenhe_bg_cailiao" v-if="info_list.status == 2"> <text style="color: #fff;">状态：</text> 审核失败</view>
							</view>
							<image @click="pro_info(info_list)" class="shopping_phone" :src="info_list.zhutu_images_first" mode=""></image>
						</view>

						<view class="" @click="pro_info(info_list)">
							<view class="sp-name">{{info_list.content2.title}}</view>
							<view class="sp-num"> <text class="fuhao">￥</text> {{info_list.price}}</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<!-- 产品信息 -->
		<view class="fengge-list" v-if="anli_list[current].id == 11">
			<view class="w-690">
				<view class="shopping d-flex align-items justify-content-space-between">
					<view class="shopping_list" v-for="(info_list,index) in infoLists" :key="index">
						<view class="shopping_postion">
							<view class="del-set">
								<view class="set_info-set" @click="set_my_info(info_list)">修改</view>
								<view class="del_go-del" @click="del_my_info(info_list)">删除</view>
							</view>
							<view class="shenhe_cailiao">
								<view class="shenhe_bg_cailiao" v-if="info_list.status == 0"> <text style="color: #fff;">状态：</text> 正在审核中</view>
								<view class="shenhe_bg_cailiao" v-if="info_list.status == 1"> <text style="color: #fff;">状态：</text> 审核成功</view>
								<view class="shenhe_bg_cailiao" v-if="info_list.status == 2"> <text style="color: #fff;">状态：</text> 审核失败</view>
							</view>
							<image class="shopping_phone" :src="info_list.product_images_first" mode=""></image>
						</view>
						<view class="">
							<view class="sp-name">{{info_list.product_name}}</view>
							<view class="sp-num"> <text class="fuhao">￥</text> {{info_list.price}}</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<!-- 行业资讯 -->
		<view class="fengge-list" v-if="anli_list[current].id == 12">
			<view class="gugong-info" v-for="(info_list,index) in infoLists" :key="index">
				<view class="w-650">
					<view class=""  @click="hangye_list(info_list)">
						<view class="status">
							<view class="shenhe" v-if="info_list.status == 0"> <text style="color: #999;">状态：</text> 正在审核中</view>
							<view class="shenhe" v-if="info_list.status == 1"> <text style="color: #999;">状态：</text> 审核成功</view>
							<view class="shenhe" v-if="info_list.status == 2"> <text style="color: #999;">状态：</text> 审核失败</view>
						</view>
						<view class="guGongMiaoshu-zixun">{{info_list.content}}</view>
					</view>
					<view class="d-flex align-items">
						<view class="d-flex align-items pinglun-magin" @click="hangye_list(info_list)">
							<image class="pinlun" src="../static/pinlun_icon@1x.png" mode="widthFix"></image>
							<view class="plnum">{{info_list.pinglun}}</view>
						</view>
						<view class="d-flex align-items" @click="dianzan_click(info_list)">
							<image class="pinlun" v-if="info_list.is_zan == 1" src="../static/dainzan_yd_icon@1x.png" mode="widthFix"></image>
							<image class="pinlun" v-else src="../static/dainzan_icon@1x.png" mode="widthFix"></image>
							<view :class="info_list.is_zan == 1 ? 'plnum_xz' : 'plnum'">{{info_list.zan}}</view>
						</view>
					</view>
					<view class="d-flex align-items justify-content-space-between">
						<view class="hour_time">
							<text>{{info_list.shijian}}</text>
							<text v-if="info_list.cityname">·</text>
							<text>{{info_list.cityname ? info_list.cityname : ''}}</text>
						</view>
						<view class="d-flex align-items">
							<view class="del_go" @click="del_my_info(info_list)">删除</view>
							<view class="set_info" @click="set_my_info(info_list)">修改</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		getMyInfotype,
		getXinxilist,
		deleteInfo,
		setlike
	} from '@/api/user.js'
	export default {
		data() {
			return {
				current: 0,
				current_id: '',
				anli_list: [],
				infoLists: [],
				page: 1,
				limit: 7,
			}
		},
		async onLoad() {
			await this.get_my_type()
			this.get_jianfang_list()
		},
		onPullDownRefresh() {
			this.page = 1
			this.get_jianfang_list()
		},
		onReachBottom() {
			this.page++
			this.get_jianfang_list()
		},
		methods: {
			go_black() {
				uni.navigateBack({
					delta: 1
				})
			},
			goHome() {
				uni.switchTab({
					url: '/pages/index/index'
				})
			},
			// 获取我发布的信息列表
			get_jianfang_list() {
				console.log("88888888", this.anli_list);
				var data = {
					page: this.page,
					limit: this.limit,
					type: this.anli_list[this.current].id,
					own: 1
				}
				getXinxilist(data).then(res => {
					console.log("的发生大法师", res);
					if (res.code == 1) {
						if (this.page == 1) {
							this.infoLists = res.data.list
						} else {
							this.infoLists = this.infoLists.concat(res.data.list)
						}
						uni.stopPullDownRefresh()
					}
				})
			},
			// 修改发布的信息
			set_my_info(e) {
				uni.navigateTo({
					url: '/pagesB/info_fabu/guzhu_info_fabu?id=' + e.group_id + '&infotype_id=' + e.infotype_id +
						'&content_id=' + e.content_id + '&show_type_info=1'
				})
			},
			// 删除发布的消息
			del_my_info(e) {
				console.log("删除sssssss", e);
				let that = this
				var data = {
					id: e.content_id
				}
				deleteInfo(data).then(res => {
					console.log("删除发布的消息", res);
					if (res.code == 1) {
						uni.showModal({
							title: '删除信息',
							content: '确定要删除此信息吗？',
							success(s) {
								if (s.confirm) {
									uni.showToast({
										title: '删除成功',
										icon: 'none'
									})
									that.get_jianfang_list()
								}
								if (s.cancel) {
									console.log("用户点击了取消");
								}
							},
							fail(err) {
								console.log("失败了", err);
							}

						})
					} else {
						uni.showToast({
							title: res.msg,
							icon: 'none'
						})
					}
				})
			},
			// 获取我发布的信息类型
			async get_my_type() {
				await getMyInfotype({}).then(res => {
					console.log("获取我发布过的类型", res);
					if (res.code == 1) {
						this.anli_list = res.data.infotypelist
					}
				})
			},
			anli_click(item) {
				console.log('item', item);
				this.current = item.index
				this.get_jianfang_list()
			},
			// 跳转到雇工信息详情页面
			go_zhaogong_detail(e) {
				uni.navigateTo({
					url:'/pagesA/zhaogong/zhaohuo_detail?id=' + e.group_id + '&user_id=' + e.user_id + '&content_id=' + e.content_id
				})
			},
			// 跳转到材料信息详情页
			pro_info(e){
				uni.navigateTo({
					url:'/pagesA/anli_zhanshi/shopping?id=' + e.content_id
				})
			},
			// 跳转到行业资讯页面
			pinglun_list(e) {
				uni.navigateTo({
					url:'/pagesA/index_top/hangye_zixun?id=' + e.group_id + '&user_id=' + e.user_id + '&content_id=' + e.content_id
				})
			},
			// 跳转到图纸信息详情页
			go_tuzhi_detail(e) {
				uni.navigateTo({
					url: '/pagesA/index_top/tuzhi_detail?content_id=' + e.content_id
				})
			},
			// 跳转到设计案例详情页
			go_detail(e) {
				uni.navigateTo({
					url: '/pagesA/anli_zhanshi/anli_detail?content_id=' + e.content_id
				})
			},
			// 跳转到建房信息详情
			jianfang_info(e){
				if(!uni.getStorageSync('token')) {
					uni.showToast({
						title:'请登录后查看',
						icon:'none'
					})
					setTimeout(() => {
						uni.navigateTo({
							url:'/pages/login/login'
						})
					},500)
					return
				}
				uni.navigateTo({
					url:'/pagesA/index_top/juese_detail?id=' + e.group_id + '&user_id=' + e.user_id + '&content_id=' + e.content_id
				})
			},
			// 点赞
			dianzan_click(e){
				console.log("点赞",e);
				var data = {
					content_id: e.content_id
				}
				setlike(data).then(res => {
					console.log("点赞文章",res);
					this.get_jianfang_list()
				})
			},
		}
	}
</script>

<style>
	.shopping_postion {
		width: 335rpx;
		position: relative;
	}
	page {
		padding-bottom: 70rpx;
	}
	.sp-num {
		font-size: 36rpx;
		font-weight: 600;
		color: #FF4D4F;
		margin: 0rpx 0 15rpx 24rpx;
	}

	.sp-name {
		width: 295rpx;
		font-size: 30rpx;
		color: #333;
		font-weight: 600;
		margin-left: 20rpx;
		margin-top: 20rpx;
		overflow: hidden;
		display: -webkit-box;
		text-overflow: ellipsis;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

	.shopping_phone {
		width: 335rpx;
		height: 335rpx;
		display: block;
		border-top-right-radius: 8rpx;
		border-top-left-radius: 8rpx;
	}

	.shopping_list {
		width: 335rpx;
		background-color: #fff;
		border-radius: 8rpx;
	}

	.shopping {
		width: 690rpx;
		margin: 20rpx auto;
		flex-wrap: wrap;
	}

	.del_go-del,
	.set_info-set {
		font-size: 26rpx;
		color: #FF6400;
		margin-top: 20rpx;
		padding: 8rpx 20rpx;
		border-radius: 8rpx;
		background: rgba(0, 0, 0, 0.67);
	}

	.set_info-set {
		color: #FFF !important;
	}

	.type-list-m1 {
		padding: 7rpx 15rpx;
		font-size: 20rpx;
		color: #FF4D4F;
		border-radius: 4.5px;
		background: #FDF2F2;
		margin-right: 10rpx;
		margin-bottom: 15rpx;
	}

	.type-list-1 {
		margin-left: 20rpx;
		padding-bottom: 40rpx;
	}

	.fengge-t {
		font-size: 30rpx;
		font-weight: 700;
		line-height: 50rpx;
		color: #333333;
		margin: 27rpx 0 10rpx 20rpx;
	}

	.fenggeImg {
		width: 690rpx;
		display: block;
	}
	.plnum_xz {
		font-size: 26rpx;
		color: #FF4D4F;
		margin-left: 10rpx;
	}

	.del-set {
		position: absolute;
		right: 20rpx;
		top: 30rpx;
	}

	.image_postion {
		width: 690rpx;
		position: relative;
	}

	.choose-fengge {
		width: 690rpx;
		background-color: #fff;
		overflow: hidden;
		border-radius: 10rpx;
		margin-bottom: 25rpx;
	}

	.card-ms {
		width: 520rpx;
		height: 80rpx;
		padding-top: 15rpx;
		font-size: 30rpx;
		font-weight: 600;
		line-height: 38rpx;
		color: #333333;
		overflow: hidden;
		display: -webkit-box;
		text-overflow: ellipsis;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

	.card-img {
		width: 110rpx;
		display: block;
		margin-right: 10rpx;
	}

	.set_info {
		font-size: 30rpx;
		color: #444;
		margin-left: 30rpx;
	}

	.del_go {
		font-size: 30rpx;
		color: #FF6400;
	}

	.tabslist {
		width: 750rpx;
		background-color: #fff;
		height: 84rpx;
	}

	.pinlun {
		width: 45rpx;
		display: block;
	}

	.plnum {
		font-size: 26rpx;
		color: #9E9E9E;
		margin-left: 7rpx;
	}

	.pinglun-magin {
		margin-right: 50rpx;
	}

	.hour_time {
		font-size: 26rpx;
		color: #999999;
	}

	.type-list {
		margin: 20rpx 0;
	}

	.type-list-m {
		padding: 7rpx 15rpx;
		font-size: 20rpx;
		color: #333333;
		border-radius: 8rpx;
		background: #EEEEF0;
		margin-right: 10rpx;
		margin-bottom: 15rpx;
	}

	.guGongMiaoshu {
		width: 640rpx;
		font-size: 32rpx;
		margin: auto;
		color: #333333;
		line-height: 40rpx;
		font-weight: 600;
	}

	.guGongMiaoshu-zixun {
		width: 640rpx;
		font-size: 32rpx;
		margin: auto;
		margin-bottom: 20rpx;
		color: #333333;
		line-height: 40rpx;
		font-weight: 600;
	}

	.gugong-info {
		width: 690rpx;
		background-color: #fff;
		border-radius: 10rpx;
		margin: 20rpx auto;
		padding: 25rpx 0;
	}

	.fengge-list {}

	.anliList {}

	.status {
		padding-bottom: 20rpx;
		border-bottom: 1px solid #eee;
		margin-bottom: 15rpx;
	}
	.shenhe_postion{
		position: absolute;
		top: 20rpx;
		left: 30rpx;
	}
	.shenhe_bg{
		font-size: 26rpx;
		color: #FF6400;
		background: rgba(0, 0, 0, 0.67);
		padding: 6rpx 15rpx;
		border-radius: 8rpx;
	}
	.shenhe_bg_cailiao{
		font-size: 24rpx;
		color: #FF6400;
		background: rgba(0, 0, 0, 0.67);
		padding: 6rpx 15rpx;
		border-radius: 8rpx;
	}
	.shenhe_cailiao{
		position: absolute;
		bottom: 20rpx;
		left: 15rpx;
	}

	.shenhe {
		font-size: 28rpx;
		color: #FF6400;
		/* text-align: right; */
	}

	page {
		background-color: #F7F8FB;
	}
</style>